package com.seguriapp.entities;

/**
 * Represents a Menu Link Role enum.
 * 
 * @author Tania Gonzales(taniadgv@gmail.com)
 */
public enum MenuLinkRole {

  Unauthenticated, Administrator, User;

  public static MenuLinkRole getEnumByString(final String text) {
    if (Unauthenticated.name().equals(text)) {
      return Unauthenticated;
    } else if (Administrator.name().equals(text)) {
      return Administrator;
    } else if (User.name().equals(text)) {
      return User;
    }
    return null;
  }

}
